package cn.elead.it.sso.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gitee.elead.mybatisplus.service.BaseServiceImpl;

import cn.elead.it.sso.system.dao.IPermissionDao;
import cn.elead.it.sso.system.model.Permission;
import cn.elead.it.sso.system.service.IPermissionService;

/**
 * <p>
 * 简单权限服务类
 * </p>
 *
 * @author luopeng
 */
@Service
public class PermissionService extends BaseServiceImpl<IPermissionDao, Permission> implements IPermissionService {

	@Autowired
	private IPermissionDao permissionDao;
	
	public Permission findById(String id) {
		return permissionDao.findById(id);
	}

	@Override
	@Transactional
	public void updateDelById(String id) {
		permissionDao.updateDelById(id);
	}
}
